<!-- 登录界面-->
<template>
  <div >
    <el-form >
      <h2 >登录</h2>
        <el-form-item label="账户：">
            <el-input v-model="form.username" />
        </el-form-item>
        <el-form-item label="密码：">
            <el-input type="password" v-model="form.password" />
        </el-form-item>

        <el-button type="primary" class="loginBtn" @click="login">
            登录
        </el-button>
    </el-form>
  </div>
</template>

<script lang="ts" setup>
import { reactive } from 'vue'


import { loginAPI} from "../request/api";

const form = reactive({
  username:'',
  password:'',
})

const login = async () => {
  let res = await loginAPI(form)
  console.log( "***" ,res);
}
</script>


<style scoped>


</style>